﻿//	Plazes-ASPI is an AS2.0 abstraction of the Plazes (http://www.plazes.com) XMLRPC-API
//		Copyright (C) 2006	Florian Mlodzik
//
//		This library is free software; you can redistribute it and/or
//		modify it under the terms of the GNU Lesser General Public
//		License as published by the Free Software Foundation; either
//		version 2.1 of the License, or (at your option) any later version.
//
//		This library is distributed in the hope that it will be useful,
//		but WITHOUT ANY WARRANTY; without even the implied warranty of
//		MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	See the GNU
//		Lesser General Public License for more details.
//
//		You should have received a copy of the GNU Lesser General Public
//		License along with this library; if not, write to the Free Software
//		Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
//
// svn:keywords
// $URL: http://plazes-aspi.googlecode.com/svn/trunk/src/as2/com/orthogeneric/webapis/plazes/methods/ApiMethods.as $
// $Id: ApiMethods.as 5 2006-08-07 19:54:11Z florian.mlodzik $

/**
* The ApiMethods-class provides abstracted methods for all remote procedures available in the "api" group
*
* @author florian.mlodzik@gmail.com
* @version 1.0
* @see PlazesService#api
* @see <a href="http://api.plazes.com/wiki/index.php/Plazes_API_Documentation" target="_blank">PlazesApi documenation</a>
*/

// import -->
import com.orthogeneric.webapis.plazes.methods.MethodsBase;
import com.orthogeneric.webapis.plazes.PlazesService;
import com.orthogeneric.webapis.plazes.rpc.RPCall;
// <-- import

class com.orthogeneric.webapis.plazes.methods.ApiMethods extends MethodsBase
{
	/**
	* The ApiMethods-class constructor.
	* 
	* @param	srvc A reference to the PlazesService-instance compositing this ApiMethods-instance
	*/
	public function ApiMethods(srvc:PlazesService)
	{
		super(srvc);
		group = "api"; // instance variable inherited from baseclass
	}
	
	/**
	* The instance-method to invoke the remote "api.version" procedure call.
	* 
	* @see <a href="http://api.plazes.com/wiki/index.php/Api.version" target="_blank">PlazesApi documentation: api.version</a>
	*/
	public function getVersion():Void
	{
		RPCall.invoke(this, "getVersion", group + ".version");
	}
}
